Re: [GENERAL] How to do this in SQL?

Поиск
Список
Период
Сортировка
От Herouth Maoz
Тема Re: [GENERAL] How to do this in SQL?
Дата
Msg-id l03110710b3269a63e14c@[147.233.148.140]
обсуждение исходный текст
Ответ на Re: [GENERAL] How to do this in SQL?  (Chris Bitmead <chris.bitmead@bigfoot.com>)
Список pgsql-sql
At 17:03 +0200 on 30/03/1999, Chris Bitmead wrote:


> Thanks! Now what if I had...
> CREATE TABLE book (author oid, publisher oid);
>
> What is the syntax? Is it...
>
> INSERT INTO BOOK(author, publisher)
> SELECT author.oid, publisher.oid
> FROM author, publisher
> WHERE author.name = 'Tolstoy' AND publisher.name = 'Penguin';
>
> Is that right?

Looks right to me.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma




В списке pgsql-sql по дате отправления:

Предыдущее
От: Chris Bitmead
Дата:
Сообщение: Re: [GENERAL] How to do this in SQL?
Следующее
От: Oliver Smith
Дата:
Сообщение: Date operation efficiency